package com.heima.Job1;

public class Test {
    public static void main(String[] args) {
        Student stu = new Student();
        try{
            stu.setAge(90);
        }catch (AgeException e){
            e.printStackTrace();
            System.out.println("年龄错误");
        }
    }
}
